package com.ruoyi.app.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * APP用户资产信息对象 app_asset
 *
 * @author ruoyi
 * @date 2025-12-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("app_asset")
public class AppAsset extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 用户资产
     */
    private BigDecimal balance;
    /**
     * 用户积分
     */
    private BigDecimal integral;

    /**
     * 活跃度
     */
    private BigDecimal liveness;

    /**
     * 贡献度
     */
    private BigDecimal contribution;
    /**
     * 帐号状态(0=正常,1=停用)
     */
    private String status;

    /**
     * 冻结标识(0=正常,1=冻结)
     */
    private Integer freezeFlag;

    /**
     * 冻结结束时间
     */
    private LocalDateTime freezeEnd;
}
